﻿using System;
using System.Collections.Generic;
using Mbs.Globalization;

namespace Mbs
{
    /// <summary>
    /// 视图接口
    /// </summary>
    public interface IView : ISupportGlobalization, IInitializable, IDisposeCollector
    {
        /// <summary>
        /// 把视图上的UI元素上的相关事件附加到消息总线上
        /// </summary>
        /// <returns></returns>
        IEnumerator<IDisposable> Attach();

        /// <summary>
        /// 订阅消息总线发过来的消息
        /// </summary>
        /// <returns></returns>
        IEnumerator<IDisposable> Subscribe();
    }

   
}
